import { sendRequest } from '@/config'

export const API = {
  login: (data: any) =>
    sendRequest({
      url: 'login',
      method: 'POST',
      data: data,
      loadingText: '登陆中...'
    }),

  getQiniuToken: (data: any) =>
    sendRequest({
      url: 'qiniutoken',
      method: 'POST',
      data: data,
      loadingText: '登陆中...'
    })
}
